package com.xinghou.platform.dao.mange.service.impl;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import com.xinghou.platform.dao.mange.VestAssignedDAO;
import com.xinghou.platform.dao.mange.VestDAO;
import com.xinghou.platform.dao.mange.service.VestAssignedDAOService;
import com.xinghou.platform.dao.mange.service.VestDAOService;
import com.xinghou.platform.model.main.Vest;
import com.xinghou.platform.model.main.VestAssigned;
/**
 * 
 * @author wlw
 *
 */
@Service
public class VestDAOServiceImpl  implements VestDAOService{
	@Resource
	private VestDAO vestDAO;

	@Override
	public int getVest(String vestName, String vestPass)throws DataAccessException {
			
		return vestDAO.getVest(vestName, vestPass);
	}

	@Override
	public int getVestId(String vestName) throws DataAccessException {
	
		return vestDAO.getVestId(vestName);
	}

	@Override
	public List<Vest> getAllVests() throws DataAccessException {
		// TODO Auto-generated method stub
		return vestDAO.getAllVests();
	}


	
}
